$(function(){
    
})

//首先，设置cookie值，使到不同的页面刷新拖拽的按钮位置不会变
function setCookie(name, value, expires) {
    document.cookie = name + '=' + value;
}
function getCookie(name) {
    var arr = new Array();
    arr = document.cookie.split("; ");
    var i = 0;
    for (i = 0; i < arr.length; i++) {
        arr2 = arr[i].split("=");
        if (arr2[0] == name) {
            return arr2[1];
        }
    }
    return '';
}
function removeCookie(name) {
    setCookie(name,'', -1);
}
function deleteCookie(name) {
    document.cookie = name + '=;  expires=Thu, 01 Jan 1970 00:00:01 GMT;'
}